﻿<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


			
<script type="text/javascript">
tinymce.init({
     selector: "#answerObj",
     menubar: false,
     language_url : '${jspath}/js/tinymce/langs/zh_CN.js',
     theme_url: '${jspath}/js/tinymce/themes/modern/theme.min.js',
     skin_url: '${jspath}/js/tinymce/skins/lightgray'
 });
 
 
</script>


<!-- 我的班级  里面 班级答疑，   里面的  等待答疑   -->
	<div class="not_right" >
		<div class="not_righttitle">
			<div class="not_righttitle01">
				 <a href="teac_class.htm">班级管理</a> &nbsp;&gt;&nbsp;班级答疑</div>
			<div class="not_righttb">
			
	
	
	<div class="add_notetop" style="color:#333;padding-top:10px;margin-left:20px;">
	
	${questionObject.content }
	
	</div>


	<div class="exam_contlistl02" style="text-align:left;margin-top:30px;margin-left:20px;">
	所属课程：	<c:if test="${questionObject.courseName == null}">
		 		<a href="#" style="color:#0A8CD2">-</a>
		 	</c:if>
		 	<c:if test="${questionObject.courseName != null}">
		 		<a target="_blank" href="/student/curriculum/initCourseTopic/${questionObject.courseId}" style="color:#0A8CD2">${questionObject.courseName}</a> 
			</c:if>
	
				<a href="#"><span style="margin-left:10px;color:#2F6383;">${questionObject.userName } </span></a> 
				提问于:${questionObject.createDate }
				<span style="margin-left:10px;color:#999"> 浏览（${questionObject.viewCnt }）</span><a href="#">
			
				</a> 
	</div>
							
							
	 <div class="add_notetop" style="color:#333;padding-top:10px;margin-left:20px;border-bottom:1px solid #DDD;width:95%;">
	
	共${questionObject.anserCount }个回复
	
	</div>

	
	<c:forEach items="${questionObject.answersOfQuestion }" var="answer">
	<div class="exam_content" style="text-align:left;width:97%;">
			<div class="quest_listimg"><c:choose><c:when test="${null != questionObject.userIcon}"><img src="http://resource.zhuclass.com/cdrmimg/${answer.userIcon}?w=45&h=45"></c:when>
					<c:otherwise><img src="/images/kczx_son/user02.jpg"></c:otherwise>
					</c:choose></div>
			<div class="exam_contlist">
				<div class="exam_contlistl"> <a href="#">
					<div class="exam_contlistl01">${answer.content }</div>
					</a>
					<div class="exam_contlistl02">
					<a href="http://space.zhuclass.com/#/${answer.userId}/home"><span style="color:#2F6383;">${answer.userName }</span></a> 
					回复于:${answer.replyDate}
					 <a href="#">
					
					</a></div>
				</div>
			
			</div>
	 </div>
	</c:forEach>
	
	<div class="add_notecontent" style="height:30px;width:75%;color:#666;text-align:right;margin-top:20px;">
		您还可以输入 140 个字
	</div>
	
	<div class="add_notecontent" style="width:95%;text-align:center;">
		<textarea style="width:600px;height:150px;outline:none;" name="answerObj" id="answerObj"></textarea>
	</div>
	
	<div class="add_notebutton" style="width:95%;margin-top:50px;">
		<c:if test="${selectedCourseId==null }">
			<c:set var="selectedCourseId" value="-1" />
		</c:if>
		<input class="add_notebutton01" onclick="javascript: replyQuestion('${menu }', '${currentTab }', '${selectedCourseId }','answerObj', '${questionObject.quizId}', 'S'); return false;" type="button" value="提交" style="border:none;outline:none; margin-left: 200px">
		<a href="#" onclick="javascript: $('#answerObj').val(''); getSudentTabContent('question', '${currentTab}', 'course', '${selectedCourseId}'); " class="add_notebutton02" style="margin-left:20px;" >取消</a>
	</div>

</div>
			</div>
			</div>
			

